/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.suspend.b.e;

import java.security.MessageDigest;

public class f {
    private static String a = "Md5Util";
    private static final char[] b = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
    private static final char[] c = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
    private static final char[] d = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };

    public static String a(String paramString) {
        try {
            MessageDigest localMessageDigest = MessageDigest.getInstance("MD5");
            localMessageDigest.update(paramString.getBytes("UTF-8"));
            byte[] arrayOfByte = localMessageDigest.digest();
            StringBuffer localStringBuffer = new StringBuffer("");
            for (int j = 0; j < arrayOfByte.length; ++j) {
                int i = arrayOfByte[j];
                if (i < 0)
                    i += 256;
                if (i < 16)
                    localStringBuffer.append("0");
                localStringBuffer.append(Integer.toHexString(i));
            }
            return localStringBuffer.toString();
        } catch (Exception localException) {}
        return "";
    }
}